package com.acme.domain.email.impl;

import com.acme.domain.email.Client;
import com.acme.domain.email.Email;

public class EmailImpl implements Email {

    private String from;
    private String to;
    private String subject;
    private String message;

    private Client client;

    @Override
    public Client getClient() {
	return client;
    }

    @Override
    public String getFrom() {
	return from;
    }

    @Override
    public String getMessage() {
	return message;
    }

    @Override
    public String getSubject() {
	return subject;
    }

    @Override
    public String getTo() {
	return to;
    }

    public void setClient(final Client client) {
	this.client = client;
    }

    @Override
    public void setFrom(final String from) {
	this.from = from;
    }

    @Override
    public void setMessage(final String message) {
	this.message = message;
    }

    @Override
    public void setSubject(final String subject) {
	this.subject = subject;
    }

    @Override
    public void setTo(final String to) {
	this.to = to;
    }

    @Override
    public String toString() {

	return "From: " + from + " To: " + to + " Subject:" + subject
		+ " Message:" + message;
    }

}
